import Mock from "mockjs";
import scheduleAip from "./modules/scheduleImp";
import download from "./modules/download";
import homeApi from "./modules/homeApi";
import userApi from "./modules/user";
// 设置Mock响应时间，模拟真实响应速度
Mock.setup({
  timeout: "200-2000"
});
Mock.mock(/\/schedule\/getData/, "get", scheduleAip.getHomeData);
Mock.mock(/\/upload/, "post", scheduleAip.showScuess);
Mock.mock(/\/getOpts/, "get", scheduleAip.getOpts());
Mock.mock(/\/sceduleSubmit/, "post", scheduleAip.sceduleSubmit());
Mock.mock(/\/scheduleEmp/, "get", Mock.mock(Mock.Random.image("200x100", "#02adea", "Hello")));
Mock.mock(/\/download\/baseSchedule/, "get", download.baseSchedule());
Mock.mock(/\/home\/getData/, "get", homeApi.getStatisticalData);
Mock.mock(/\/getHousBydate/, "get", homeApi.getHours());
Mock.mock(/\/user\/getUser/, "get", userApi.getUserList);
Mock.mock(/\/distance\/getDistacneList/, "get", "success");
